// developer list
// var develoeprs = {
//     'test@example.com',
//     'Jim@example.com'
// };

class User
{
    init(jiraDeveloper)
    {
        localStorage.setItem('jira-developer', JSON.stringify(jiraDeveloper));
    }

    getList()
    {
        let listStr = localStorage.get('jira-developer');
        if (listStr) {
            return JSON.parse(listStr);
        } else {
            return ['None'];
        }
    }

    getRemoteList()
    {
        let config = dataObject.getConfig();
        let response = requestJs.fetch(config.remoteStore.url + '/user.php');
            response.then(resp => resp.json())
            .then(function(users) {
                Logger.debug('User List:', users);
                localStorage.setItem('jira-developer', JSON.stringify(users));
            });
    }
}
var user = new User();
